import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class ServletDemo1 extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("我是dopost");
        String name=request.getParameter("namep");
        String pwd=request.getParameter("pwdp");
        System.out.println(name+"+++++"+pwd);

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("我是doget方法");
        String name=request.getParameter("name");
        String pwd=request.getParameter("pwd");
        System.out.println(name+"+++++"+pwd);

    }

}
